//
//  CPDebugConfigTableViewCell.m
//  CPSecurityTools
//
//  Created by collegepre on 2019/11/15.
//  Copyright © 2019 collegepre. All rights reserved.
//

#import "CPDebugConfigTableViewCell.h"

@implementation CPDebugConfigTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setDict:(NSDictionary *)dict{
    _dict = dict;
    self.textLabel.text = dict[@"title"];
    self.detailTextLabel.text = dict[@"subtitle"];
    NSString *isSelect =dict[@"isSelect"];
    if (isSelect.intValue == 0) {
        [self setSelected:NO];
    }else{
         [self setSelected:YES];
    }
}
@end
